<template>
  <div>
    <Calendar :p-date="nowDate" @changeDate="date => this.nowDate = date"></Calendar>
<!--    <Calendar v-model="nowDate"></Calendar>或者直接使用v-model-->
    <div>{{nowDate}}</div>

    sdsdcsdc
  </div>
</template>

<script>
  import Calendar from "../../components/common/calendar/Calendar";
  export default {
    name: "TestCalendar",
    components: {
      Calendar,
    },
    data() {
      return {
        nowDate: new Date()
      }
    }
  }
</script>

<style scoped>

</style>